﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class index : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)//首次打开
        {
            if (Session["UserName"] == null && Session["UserNo"] == null)//没有经过正常验证打开页面
            {
            Page.ClientScript.RegisterStartupScript(this.GetType(),"","<script type='text/javascript'>"+
                "alert('登录超时或未登录,请您重新登录!');location.href='../Login.aspx'</script>",false);
            }
        }
    }
}